package com.jdrx.sw.sewage.beans.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value = "AlarmHandlePO", description = "告警处理记录")
@Data
public class AlarmHandlePO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "id主键", required = true)
    private Long id;

    @ApiModelProperty(value = "告警处理时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime handleTime;

    @ApiModelProperty(value = "告警处理意见", required = true)
    private String handleIdea;

    @ApiModelProperty(value = "处理人名字", required = true)
    private String handleUserName;

    @ApiModelProperty(value = "告警关联id", required = true)
    private Long alarmId;

    @ApiModelProperty(value = "告警处理照片（list）")
    private String handleAttach;

    @ApiModelProperty(value = "处理类型(1-系统处理 2-责任人处理)")
    private Integer handleType;

    @ApiModelProperty(value = "租户id")
    private String dataNode;
}